export default {
  data() {
    return {
			view: {},
			querys: {}
		}
  },
	methods: {
		loadData(){
			this.loadstate = 1
			this.page = 1
			this.list = []
			return uni.$u.http.get(this.loadPath, {params: this.querys}).then(res=>{
				this.loadData(res)
				this.loadstate = 2
			}).catch(()=>{})
		},
		toggle(i, field = 'exam'){
			if (this.querys[field] != i) {
				this.querys[field] = i
				this.reload()
			}
		}
	}
}
